/**
 * 定义字典模块
 */
(function(window, angular, undefined){

	var domainModule = angular.module('water.entity.ehcache',['waterCommon']);
	
	domainModule.service('$ehcacheService',function($waterDataCommon){
		
		/**
		 * 获取一个键值
		 */
		this.getValue = function(key){
			var promise = $waterDataCommon.post("/Ehcache/getValue",{key:key});
			return promise;
		}
		
		/**
		 * 删除一个键值
		 */
		this.deleteKey = function(key){
			var promise = $waterDataCommon.post("/Ehcache/delKey",{key:key});
			return promise;
		}
		
	})
}(window, angular));